set(srcs
    "./lvgl_service/esp_lvgl_port.c"
    "./lvgl_service/esp_lcd_touch.c"
    "./lvgl_service/esp_lcd_touch_ft5x06.c"
    "./bt_service/ble_service.c"
    "./bt_service/bt_service.c"
    "./media_service/media_service.c"
    "./media_service/audio_player.cpp"
)

if(CONFIG_AUDIO_PLAYER_ENABLE_MP3)
    list(APPEND srcs "./media_service/audio_mp3.cpp")
endif()

if(CONFIG_AUDIO_PLAYER_ENABLE_WAV)
    list(APPEND srcs "./media_service/audio_wav.cpp")
endif()

set(includes
    "include"
)

set(requires 
    driver
    esp_timer
    esp_lcd
    lvgl__lvgl
    bt
    nvs_flash
    main
)

idf_component_register(
    SRCS 
        ${srcs}
    INCLUDE_DIRS 
        ${includes}
    PRIV_REQUIRES 
        ${requires}
)
